package com.qf.service.impl;
import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Optional;

/**
 * Created by 54110 on 2020/8/17.
 */
@Service
public class UserServiceImpl implements UserService {

@Resource
    private UserMapper userMapper;
    @Override
    public List<User> findAll() {

        return  userMapper.findAll();
    }

    @Override
    public User findById(Integer id) {

            return null;
    }

    @Override
    public Integer updateAndSave(User user) {

        return 0;
    }
}
